import 'package:flutter/material.dart';

class PageTitle extends StatelessWidget {
  const PageTitle({
    Key? key,
    required this.title,
    required this.textColor,
    required this.fontSize,
  }) : super(key: key);

  final String? title;
  final Color? textColor;
  final double? fontSize;

  @override
  Widget build(BuildContext context) {
    return Text(
      title!,
      // style: TextStyle(
      //   color: textColor,
      //   fontSize: fontSize,
      // ),
      style: Theme.of(context).textTheme.bodyText2?.copyWith(
            // color: textColor,
            fontSize: fontSize,
          ),
    );
  }
}
